﻿

using SmartWMS.Common.ResponseOutput;
using SmartWMS.Server.SystemSets.StaffServices.Dto;

namespace SmartWMS.Server.SystemSets.StaffServices
{
    public interface IStaffService : ITransientServer
    {
        /// <summary>
        /// 人员列表
        /// </summary>
        /// <returns></returns>
        Task<Response<List<StaffInput>>> GetStaffListAsync();

        /// <summary>
        /// 添加人员角色关联表
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<Response<bool>> AddStaffRoleAsync(StaffRoleInput input);

        /// <summary>
        /// 获取人员角色关联表数据
        /// </summary>
        /// <returns></returns>
        List<int> GetRoleByIdAsync(int id);
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="staff"></param>
        /// <returns></returns>
        Task<Response<StaffInput>> LoginAsync(StaffInput staff);
    }
}
